<extend name="Public/base"/>

<block name="body">
	<div class="am-cf am-u-md-12 header-title">
		<h2><if condition="ACTION_NAME eq 'editextend'">编辑<elseif condition="ACTION_NAME eq 'addextend'"/>添加</if>扩展分类</h2>
	</div>

    <div class="am-cf am-u-md-12 am-margin-top">
        <form method="post" class="am-form am-form-horizontal">

            <div class="am-form-group">
                <label class="am-u-sm-2 am-form-label">名称：</label>
                <div class="am-u-sm-10">
                    <input type="text" class="text input-large" name="profile_name" value="{$profile_name}">
                    <span class="am-form-help"></span>
                </div>
            </div>
            <div class="am-form-group">
                <label class="am-u-sm-2 am-form-label">排序：</label>
                <div class="am-u-sm-10">
                    <input type="text" class="text input-large" name="sort" value="{$sort}">
                    <span class="am-form-help"></span>
                </div>
            </div>
			<div class="am-form-group">
				<label class="am-u-md-2 am-form-label">状态：</label>
				<div class="am-u-md-10">
					<div class="am-btn-group" data-am-button>
						<label class="am-btn am-btn-primary <eq name="status" value="1">am-active</eq>"><input type="radio" name="status" value="1">开启</label>
						<label class="am-btn am-btn-primary <eq name="status" value="0">am-active</eq>"><input type="radio" name="status" value="0">禁用</label>
					</div>
				</div>
			</div>
			<div class="am-form-group">
				<label class="am-u-md-2 am-form-label">是否隐藏：</label>
				<div class="am-u-md-10">
					<div class="am-btn-group" data-am-button>
						<label class="am-btn am-btn-primary <eq name="status" value="1">am-active</eq>"><input type="radio" name="status" value="1">是</label>
						<label class="am-btn am-btn-primary <eq name="status" value="0">am-active</eq>"><input type="radio" name="status" value="0">否</label>
					</div>
				</div>
			</div>
            <div class="am-form-group">
                <div class="am-u-sm-10 am-u-sm-offset-2">
                    <button class="am-btn am-btn-primary submit-btn ajax-post" type="submit" target-form="am-form-horizontal">确 定</button>
                    <button class="am-btn am-btn-default btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
                    <input type="hidden" name="id" value="{$id}">
                </div>
            </div>
        </form>
    </div>
</block>